package com.frxuexi.shop.intent

import com.frxuexi.base.db.OrderEntity
import com.frxuexi.base.entity.CreateOrderReqBean
import com.frxuexi.base.entity.PreOrderBean
import com.frxuexi.base.mvi.IUiIntent

sealed class CartIntent:IUiIntent {

    data class getCarts(val page:Int):CartIntent()

    data class updateCart(val id:Int,val num:Int):CartIntent()

    data class deleteCart(val ids:List<Int>):CartIntent()
    data class addOrder(val orderEntity: OrderEntity):CartIntent()

    data class preOrder(val bean: PreOrderBean):CartIntent()
    data class getPreOrder(val no: String):CartIntent()
    data class createOrder(val bean: CreateOrderReqBean):CartIntent()
}